home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 0022-3.564 / dmg-3160 / misc / desktop.txt < prev    next >
Text File  |  1987-04-21  |  4KB  |  120 lines

  1.  
  2. From: lynbech@daimi.aau.dk (Christian Lynbech)
  3. Newsgroups: comp.sys.atari.st.tech
  4. Subject: desktop.inf and fileviewing
  5. Date: 13 Nov 91 08:40:15 GMT
  6. Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
  7. Lines: 58
  8.  
  9. [This may be common knowledge, but the following trick was new to me.]
  10.  
  11.  
  12. The following trick will enable you to view any file with a program of your own
  13. choice, just by double-clicking on the file.
  14.  
  15. Install the program as normal with some (actually any) extension. Save your
  16. desktop and load desktop.inf into your favorite editor. Now find the line that
  17. correspond to the installation of the fileviewer, and move that line up BEFORE
  18. the lines that determines what files are executables. Furthermore edit the
  19. extension to *.*@
  20.  
  21. After doeing this, my desktop.inf looks like this:
  22.  
  23.  
  24. #a000000
  25. #b000000
  26. #c7770007000600070055200505552220770557075055507703111103
  27. #d                                             
  28. #E 78 13 
  29. #W 00 00 00 03 4C 0C 08 C:\APPL\*.*@
  30. #W 00 00 02 0B 4C 09 00 @
  31. #W 00 00 0A 0F 34 09 00 @
  32. #W 00 00 0E 01 34 09 00 @
  33. #M 02 00 00 FF D HARDDISK@ @ 
  34. #M 01 00 00 FF C HARDDISK@ @ 
  35. #M 00 00 00 FF A FLOPPY DISK@ @ 
  36. #T 00 07 02 FF   TRASH@ @ 
  37. #F FF 04   @ *.*@ 
  38. #D FF 01   @ *.*@ 
  39. #P 03 04   C:\BIN\MANPAGER.TTP@ *.*@ 
  40. #G 03 FF   *.APP@ @ 
  41. #G 03 FF   *.PRG@ @ 
  42. #P 03 FF   *.TTP@ @ 
  43. #F 03 04   *.TOS@ @ 
  44. #G 03 04   C:\APPL\UTIL\DIVERSE\CMD\CMD.PRG@ *.CMD@ 
  45. #G 03 04   C:\TEX\SHOWDVI\SHOWDVI.PRG@ *.DVI@ 
  46. #G 03 04   C:\APPL\UTIL\DIVERSE\TOM_SHEL\TOMSHELL.PRG@ *.TOM@ 
  47.  
  48.  
  49.  
  50. As you can see, the viewer (in my case c:\bin\manpager.ttp) is now placed
  51. before the *.APP and *.PRG stuff.
  52.  
  53. The trick is that the document type for c:\bin\manpager.ttp is *.* which
  54. matches anything. Therefore it must be the last pattern tried by the desktop.
  55. The desktop searches the list in reverse order, therefore the entry must be
  56. first. Otherwise any other program would be seen as a document for the
  57. manpager, including any executable file!
  58.  
  59. I tried it yesterday and it really worked. I have TOS 1.4, but I suspect that
  60. it should work under older versions as well.
  61.  
  62.  
  63. Christian Lynbech
  64.  
  65. DAIMI                                           office: R0.32   phone: 5034
  66. University of Aarhus,DK-Denmark                 email: lynbech@daimi.aau.dk
  67.  
  68.  
  69.  
  70. From: r0mill01@ULKYVX.BITNET (Robert Delius Royar)
  71. Newsgroups: comp.sys.atari.st.tech
  72. Subject: Re: desktop.inf and fileviewing
  73. Date: 13 Nov 91 11:16:32 GMT
  74. Reply-To: r0mill01@ULKYVX.BITNET
  75. Organization: University of Louisville
  76. Lines: 39
  77.  
  78. In article <1991Nov13.084015.19026@daimi.aau.dk>, lynbech@daimi.aau.dk (Christian Lynbech) writes:
  79. >[This may be common knowledge, but the following trick was new to me.]
  80. [Info about the inf file]
  81. >
  82. >
  83. >After doeing this, my desktop.inf looks like this:
  84. >
  85. >#F FF 04   @ *.*@ 
  86. >#D FF 01   @ *.*@ 
  87. >#P 03 04   C:\BIN\MANPAGER.TTP@ *.*@ 
  88. >#G 03 FF   *.APP@ @ 
  89. >#G 03 FF   *.PRG@ @ 
  90. >#P 03 FF   *.TTP@ @ 
  91. >#F 03 04   *.TOS@ @ 
  92. >#G 03 04   C:\APPL\UTIL\DIVERSE\CMD\CMD.PRG@ *.CMD@ 
  93. >#G 03 04   C:\TEX\SHOWDVI\SHOWDVI.PRG@ *.DVI@ 
  94. >#G 03 04   C:\APPL\UTIL\DIVERSE\TOM_SHEL\TOMSHELL.PRG@ *.TOM@ 
  95. >
  96. >
  97. >I tried it yesterday and it really worked. I have TOS 1.4, but I suspect that
  98. >it should work under older versions as well.
  99.  
  100. Be sure your inf file on pre 1.4 systems does not excede 1K
  101.  
  102. >
  103. >
  104. >Christian Lynbech
  105. >
  106. >DAIMI                                          office: R0.32   phone: 5034
  107. >University of Aarhus,DK-Denmark                 email: lynbech@daimi.aau.dk
  108.  
  109. While it is undocumented, the 
  110. #F FF 04   @ *.*@ 
  111. Line controls the default print file option (or at least that's what's been
  112. reported on the net some years ago).  My Desktop.inf contanins
  113. #F FF 04   C:\ETC\TYPE.PRG *.*@ 
  114. and that seems to work very well.
  115.  
  116. Robert Royar
  117.  
  118.  
  119. -
  120.